package fourzerofour.guoshixu.day03;

public class Person {
    public String name;
    public String age;

    public Person() {
    }

    public Person(String name,String age){
        this.name = name;
        this.age = age;
    }

    @Override
    public boolean equals(Object obj) {
        Person person1 = this;
        Person person2 = (Person)obj;
        if(person1.age==person2.age && person1.name==person2.name){
            return true;
        }else {
            return false;
        }

    }

    @Override
    public int hashCode() {
       return 1;
    }


}
